<?php
include "connect.php";
    if(isset($_GET["xoa"]))
    {
        $xoa = ($_GET["xoa"]);
        if($del = $con->query("Delete From members where user='{$xoa}'"))
            {
            header('Location:/user_manager.php');
            }
    }
    elseif(isset($_GET["xoa2"]))
    {
        $xoa2 = ($_GET["xoa2"]);
        if($del = $con->query("Delete From product where id=".$xoa2))
            {
            header('Location:/product_manager.php?on=1');
            }
    }
     elseif(isset($_GET["xoa3"]))
    {
        $xoa3 = ($_GET["xoa3"]);
        if($del = $con->query("Delete From footwear where id=".$xoa3))
            {
            header('Location:/product_manager.php?on2=2');
            }
    }
    elseif(isset($_GET["xoa4"]))
    {
        $xoa4 = ($_GET["xoa4"]);
        if($del = $con->query("Delete From contact where id=".$xoa4))
            {
            header('Location:/ctact.php');
            }
    }
?>